-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature] Build and run C++ Python tests #218
base: main
Are you sure you want to change the base?
Conversation
Update: Add support for multi-arch |
nice |
.github/workflows/unit_test.yaml
Outdated
|
||
- name: Run C++ tests | ||
run: | | ||
cd build && ctest && cd .. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be able to do a ctest --test-dir build
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the contribution! It looks good to me.
- name: Run Python tests without HF_TOKEN | ||
env: | ||
HF_TOKEN: ${{ secrets.HF_TOKEN }} | ||
if: env.HF_TOKEN == '' | ||
run: | | ||
pip install pytest | ||
pytest -m "not hf_token_required" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this part necessary? I think Run Python tests
should have covered all tests?
Add ci (#214) to build xgrammar from source code and run all C++ tests and Python tests (except for those HF_TOKEN needed tests).